<?php
/**
 * <https://y.st./>
 * Copyright © 2017 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'title' => 'More Minetest planning',
	'body' => <<<END
<section id="general">
	<h2>General news</h2>
	<p>
		The parent of the on-site manager offered me some bread.
		Someone left it up for grabs in the laundry room.
		When I went to check it out though, it looked like home-made bread.
		No label!
		Without an ingredient list, I can&apos;t be sure it&apos;s safe to eat.
		Oh, well.
	</p>
	<p>
		I&apos;m toying with the idea of writing up some Lua to aid in the building of the main transit line of my Minetest server.
		Holding me back is the fact it&apos;d be cheating.
		Pushing me forward is the fact that this tunnel will be a public service to my players.
		As the administrator, it seems fair to exercises my authority to set up a useful, long-distance road system.
		The quicker I have it done, the sooner users will get benefit from it.
	</p>
	<p>
		I used my breaks at work to plan what to do in <code>minequest</code> with unrecognised mineral items.
		Any item crafted from one of the registered minerals can be put in a bonus slot and provide a powerup.
		However, each item provides a different bonus.
		So what do I do about items in which no bonus has been defined for?
		At first, I thought to provide a fallback bonus.
		All I needed to do was figure out what generic bonus that should be.
		It should be useful, but not something players will miss if all mineral-based items have defined bonuses.
		Later, I decided to provide a different fallback for each mineral.
		Another idea I had was to reuse a bonus from a random item for each item with no defined bonus.
		However, it was my final idea that I like the best.
		As the mod locates all the mineral-based nodes by going through the craft recipes, any time it comes across a node with no defined bonus, it&apos;ll copy the bonus from the mineral item used to craft it.
		If someone, for example, defines a recipe that uses a locked chest as an ingredient, but doesn&apos;t define a bonus for their new item, it&apos;ll take on the bonus of the locked chest.
		That way, the bonus will be the same as that of a likely-similar item instead of just being generic or random.
	</p>
	<p>
		My <a href="/a/canary.txt">canary</a> still sings the tune of freedom and transparency.
	</p>
</section>
<section id="university">
	<h2>University life</h2>
	<p>
		I tried to work on coursework today, but that didn&apos;t happen.
		The school website kept timing out on me.
	</p>
</section>
END
);
